
class Outclass {

    public int data1 = 1;
    public static int data2 = 2;
    static class InnerClass {
        public void test() {
            System.out.println("哈哈");
        }
    }

}

public class Main_1 {
    public static void main(String[] args) {
        //如何创建一个静态内部类？
        Outclass.InnerClass innerClass = new Outclass.InnerClass();
        innerClass.test();
    }
}
